package com.stx.stcp.controller;

import com.stx.stcp.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AjaxController {
    @Autowired
    TypeService typeService;

    @RequestMapping("pri/back/gettypes")
    public Object getTypes(){
        List list = typeService.allTypes();
        return list;
    }
}
